const mongo = require('../model/db/db.js')
module.exports ={
    getId:function (collection,callback) {
            mongo.insert(collection,{id:0},function () {
                mongo.count(collection,{},function (id) {
                    callback?callback(id):''
                })
            })
    }
}
